//***********************************************************************
//	File:		CreateProjectileMessage.cpp
//	Author:		
//	Course:		SGP 1405
//	Purpose:	
//***********************************************************************
//***********************************************************************
//	Purposfully left blank for all comments regarding this file 
//	
//	
//	
//***********************************************************************


#include "CreateProjectileMessage.h"
#include "../GameObjects/Entity.h"
#include "MessageID.h"

CreateProjectileMessage::CreateProjectileMessage(Entity* owner, int projectileType)
: SGD::Message(MessageID::CREATE_PROJECTILE_MESSAGE)
{
	m_pSender = owner; 
	projType = projectileType; 
	owner->AddRef(); 
}

CreateProjectileMessage::~CreateProjectileMessage()
{
	m_pSender->Release(); 
	m_pSender = nullptr;
}

